<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : oaiResp2Import.xsl
    Created on : 10. květen 2010, 16:55
    Author     : martin
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:oai="http://www.openarchives.org/OAI/2.0/"
                xmlns:europeana="http://www.europeana.eu/schemas/ese/"
                xmlns:dc="http://purl.org/dc/elements/1.1/"
                exclude-result-prefixes="dc">
    <xsl:output method="xml" indent="yes"/>

    <xsl:template match="oai:ListRecords">
        <metadata xmlns="http://www.europeana.eu/schemas/ese/"
                  xmlns:europeana="http://www.europeana.eu/schemas/ese/"
                  xmlns:dc="http://purl.org/dc/elements/1.1/">
        <xsl:apply-templates/>
        </metadata>
    </xsl:template>

    <xsl:template match="oai:record">
        <xsl:apply-templates select="oai:metadata/europeana:metadata"/>
    </xsl:template>

    <xsl:template match="europeana:record">
        <record>
            <xsl:copy-of select="./node()"/>
        </record>
    </xsl:template>

</xsl:stylesheet>
